package org.example.myleet.p731;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        MyCalendarTwo myCalendarTwo = new MyCalendarTwo();
        //---example 1
//        Assert.isTrue(myCalendarTwo.book(10, 20));
//        Assert.isTrue(myCalendarTwo.book(50, 60));
//        Assert.isTrue(myCalendarTwo.book(10, 40));
//        Assert.isTrue(!myCalendarTwo.book(5, 15));
//        Assert.isTrue(myCalendarTwo.book(5, 10));
//        Assert.isTrue(myCalendarTwo.book(25, 55));

        //---example 2
//        Assert.isTrue(myCalendarTwo.book(26, 35));
//        Assert.isTrue(myCalendarTwo.book(26, 32));
//        Assert.isTrue(!myCalendarTwo.book(25, 32));
//        Assert.isTrue(myCalendarTwo.book(18, 26));
//        Assert.isTrue(myCalendarTwo.book(40, 45));
//        Assert.isTrue(myCalendarTwo.book(1, 6));
//        Assert.isTrue(myCalendarTwo.book(45, 60));
//        Assert.isTrue(myCalendarTwo.book(11, 18));

        //---example 3
        Assert.isTrue(myCalendarTwo.book(28, 46));
        Assert.isTrue(myCalendarTwo.book(9, 21));
        Assert.isTrue(myCalendarTwo.book(21, 39));
        Assert.isTrue(!myCalendarTwo.book(37, 48));
        Assert.isTrue(!myCalendarTwo.book(38, 50));
        Assert.isTrue(!myCalendarTwo.book(22, 39));
        Assert.isTrue(myCalendarTwo.book(45, 50));
        Assert.isTrue(myCalendarTwo.book(1, 12));
        Assert.isTrue(!myCalendarTwo.book(40, 50));
        Assert.isTrue(!myCalendarTwo.book(31, 44));
    }
}
